home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7741 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  995 b 

  1. Path: news.ichange.com!newsmaster
  2. From: Jesse Liberty <jl@staff.ichange.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Class vs. Struct - was Re: No struct in C++!!?
  5. Date: Mon, 19 Feb 1996 07:32:55 -0500
  6. Organization: AT&T
  7. Message-ID: <31286DF7.48F5@staff.ichange.com>
  8. References: <31235E0C.252C@idi.oclc.org> <4g36me$abk@news1.usa.pipeline.com>
  9. NNTP-Posting-Host: 140.244.99.60
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b6a (Win95; I)
  14. CC: jl@staff.ichange.com
  15.  
  16. These misunderstandings are amazingly persistent.  Let's be clear:
  17.  
  18. The keyword struct and class are EXACTLY alike in C++ with two minor 
  19. differences:  1) in struct all class members and methods are by default 
  20. public (though you can of course declare them to be protected or 
  21. private) and inheritance is by default public, though again you can 
  22. declare it private.
  23.  
  24. There is no other difference. You can use them interchangably other than 
  25. the above.
  26.  
  27. Thanks. -j
  28.